package com.bdqn.pojo;


import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;

public class SysUser {
  private long id; //id
  @NotEmpty(message = "用户编码不能为空")
  private String account; //用户编码
  @NotEmpty(message = "用户名称不能为空")
  private String realName; //用户名称
  @NotNull(message = "密码不能为空")
  @Length(min = 6,message = "用户密码长度为6-10")
  private String password; //用户密码
  private long sex;  //性别
  @Past(message = "必须是一个过去的时间")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private java.sql.Date birthday;  //出生日期
  private String phone;   //电话
  private String address; //地址
  private long roleId;    //用户角色ID
  private long createdUserId;   //创建者
  private java.sql.Time createdTime; //创建时间
  private long updatedUserId;     //更新者
  private java.sql.Time updatedTime;   //更新时间
  private long age;//年龄
  private String roleName;
  private String idPicPath;   //存储上传的证据照片
  private String workPicPath;//工作证据照

  public long getAge() {
    return age;
  }

  public void setAge(long age) {
    this.age = age;
  }

  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }


  public String getRealName() {
    return realName;
  }

  public void setRealName(String realName) {
    this.realName = realName;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public long getSex() {
    return sex;
  }

  public void setSex(long sex) {
    this.sex = sex;
  }


  public java.sql.Date getBirthday() {
    return birthday;
  }

  public void setBirthday(java.sql.Date birthday) {
    this.birthday = birthday;
  }


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public long getRoleId() {
    return roleId;
  }

  public void setRoleId(long roleId) {
    this.roleId = roleId;
  }


  public String getIdPicPath() {
    return idPicPath;
  }

  public void setIdPicPath(String idPicPath) {
    this.idPicPath = idPicPath;
  }


  public String getWorkPicPath() {
    return workPicPath;
  }

  public void setWorkPicPath(String workPicPath) {
    this.workPicPath = workPicPath;
  }


  public long getCreatedUserId() {
    return createdUserId;
  }

  public void setCreatedUserId(long createdUserId) {
    this.createdUserId = createdUserId;
  }


  public java.sql.Time getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(java.sql.Time createdTime) {
    this.createdTime = createdTime;
  }


  public long getUpdatedUserId() {
    return updatedUserId;
  }

  public void setUpdatedUserId(long updatedUserId) {
    this.updatedUserId = updatedUserId;
  }


  public java.sql.Time getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(java.sql.Time updatedTime) {
    this.updatedTime = updatedTime;
  }

}
